<script setup>
import { onMounted, ref } from 'vue'

const inputValue = ref('')
const autoFoucsInput = ref(null)
onMounted(() => {
  autoFoucsInput.value?.focus()
})
</script>
<template>
  <input
    ref="autoFoucsInput"
    type="text"
    v-model="inputValue"
    placeholder="请输入内容"
  />
</template>

<style scoped></style>
